package com.bili.bili_data_api.controller;
import com.bili.bili_data_api.service.GRcompareService;
import com.bili.bili_data_api.vo.BeforTenVo;
import com.bili.bili_data_api.vo.NumVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class GRcompareController {

    @Autowired
    private GRcompareService gRcompareService;

    @GetMapping("/num")
    public NumVo listAll(){
        return gRcompareService.score();
    }

    @GetMapping("/guoBeforeTen")
    public BeforTenVo guoBeforeTen(){
        return gRcompareService.guoBeforeTen();
    }

    @GetMapping("/fanJuBeforeTen")
    public BeforTenVo fanJuBeforeTen(){
        return gRcompareService.fanJuBeforeTen();
    }
}
